from django.db import models

class User(models.Model):
    username = models.CharField('用户名', max_length=20)
    password = models.CharField('密码', max_length=80)
    phone = models.CharField('手机号', max_length=11)
    address = models.CharField('地址', max_length=120)
    email = models.EmailField('邮箱')
    level=models.SmallIntegerField(default=1)

    class Meta:
        db_table = "users"
        verbose_name = "用户表"
        verbose_name_plural = verbose_name
